package com.heima.model.comment.dtos;
import com.heima.model.common.validator.ValidatorAdd;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class CommentLikeDTO {

    /**
     * 评论id
     */
    private String commentId;

    /**
     * 0：点赞
     * 1：取消点赞
     */
    @Range(min=0,max = 1 ,message = "操作只能是0或1" ,groups = {ValidatorAdd.class})
    private Short operation;
}